package com.example.demo1.pay.service;

import com.example.demo1.pay.entity.FundIntercourse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 用户资金往来表 服务类
 * </p>
 *
 * @author gong
 * @since 2023-02-27
 */
public interface FundIntercourseService extends IService<FundIntercourse> {

    /**
     * 更新支付流水表
     * @param payerWalletId 付款方钱包id
     * @param payeeWalletId 收款方钱包id
     * @param amount 交易金额
     * @param outIn in: 收入, out: 支出
     * @param businessType 业务类型: 100_in: 充值, 200_out: 提现, 300_payment: 支付, 400_receipt: 收款,500_withdrawal:退款
     * @param serialNu 流水号
     */
    void setFundIntercourse(String payerWalletId, String payeeWalletId, BigDecimal amount, String outIn, String businessType, String serialNu);
}
